package com.yinsw.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yinsw.entity.HouseEntity;
import com.yinsw.entity.TbRegion;
import com.yinsw.entity.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author printguy
 * @version 1.0.0
 * @className TbHouseDao.java
 * @description TODO
 * @createTime 2022年07月18日 19:19:00
 */
@Mapper
public interface HouseDao extends BaseMapper<HouseEntity> {
    List<TbRegion> provinceList();

    List<TbRegion> cityList(@Param("id") Integer id);

    List<TbRegion> countyList(Integer id);

    int save(HouseEntity houseEntity);

    TbUser getUser(@Param("name") String name);
}
